package com.fhz.room;

import androidx.room.AutoMigration;
import androidx.room.Database;
import androidx.room.RoomDatabase;

/**
 * 时间:2023/8/16
 *
 * @author Mr.Feng
 * 简述: TODO
 */
@Database(entities = {User.class,Student.class,Teacher.class},
        autoMigrations = {
        @AutoMigration(from = 2, to = 3)
},version = 3,exportSchema = true)
public abstract class AppDatabase extends RoomDatabase {
    public abstract UserDao userDao();
    public abstract StudentDao studentDao();
    public abstract TeacherDao teacherDao();
}
